

<h2>京东搜索</h2>

<div class="search">
    <input type="text" [(ngModel)]="keyword"><button (click)="doSearch()">搜索</button>

    <hr/>
    
    <ul>
        <li *ngFor="let item of historyList;let key=index;">{{item}} ------ <button (click)="deleteHistory(key)">×</button></li>
    </ul>

</div>

